AUTOMAKE_OPTIONS = nostdinc
AM_CPPFLAGS = \
	-I$(top_builddir)/include \
	-I$(top_srcdir)/include \
	-I$(includedir)

EXTRA_DIST = ctype_unicode_case.c ctype_unicode_trait.c

lib_LTLIBRARIES = libxpbas.la
libxpbas_la_SOURCES = \
	arr.c \
	assert.c \
	cond.c \
	ctype.c \
	ctype_unicode.c \
	dll.c \
	endian.c \
	errno.c \
	fio.c \
	list.c \
	locale.c \
	main.c \
	memory.c \
	mtx.c \
	rwl.c \
	search.c \
	sem.c \
	signal.c \
	sio.c \
	sort.c \
	stdcli.c \
	stdio.c \
	stdlib_base64.c \
	stdlib_bitcount.c \
	stdlib_blowfish.c \
	stdlib.c \
	stdlib_md5.c \
	stdlib_rc4.c \
	str.c \
	strv.c \
	sysapi.c \
	sysapi_chdir.c \
	sysapi_epoll.c \
	sysapi_getcwd.c \
	sysapi_getpnm.c \
	sysapi_link.c \
	sysapi_mkdir.c \
	sysapi_opentmp.c \
	sysapi_path.c \
	sysapi_poll.c \
	sysapi_rmdir.c \
	sysapi_trimpath.c \
	thr.c \
	time.c \
	time_conv.c \
	time_sleep.c \
	time_utime1.c \
	time_utime2.c \
	tio.c \
	tio_get.c \
	tio_put.c \
	unxapi.c \
	utf8.c \
	string_compar.c \
	string_concat.c \
	string_copy.c \
	string_ctype.c \
	string_dup.c \
	string_fill.c \
	string_rotate.c \
	string_search.c \
	string_size.c \
	string_strfnmat.c \
	string_strspl.c \
	string_strtodn.c \
	string_strtok.c \
	string_strvec.c \
	string_word.c \
	string_misc.c \
	mstring.c \
	wstring.c \
	winapi.c

libxpbas_la_LDFLAGS = -version-info 1:0:0 -L$(libdir)
libxpbas_la_LIBADD = $(LIBDL)

if ENABLE_CXX
lib_LTLIBRARIES += libxpbas++.la
libxpbas___la_SOURCES = \
	BufferPool.cpp \
	Condition.cpp \
	File.cpp \
	MD5.cpp \
	MemoryPool.cpp \
	Mutex.cpp \
	RC4.cpp \
	Semaphore.cpp \
	SignalAgent.cpp \
	Sio.cpp \
	String.cpp \
	Thread.cpp
libxpbas___la_LDFLAGS = -version-info 1:0:0 -L$(libdir)
endif

